package classandobj.constuctor.inherit;

public class Sub extends Base{
	private Integer x;

	public Sub(){
	}
	
	public Sub(String name){
		super(name);	
	}
	
	public Integer getX() {
		return x;
	}

	public void setX(Integer x) {
		this.x = x;
	}
	
	
	public static void main(String[] args){
		Sub sub = new Sub();
		System.out.println(sub.getName());
	}
}
